package spring1.printer;

public class TestP1 {

	public static void main(String[] args) {
		Printer p = new Printer();
		p.setInk(new ColorInk());
		TextPaper p1 = new TextPaper();
		p1.setLinesPage(10);
		p1.setLinewords(8);
		p.setPaper(p1);

		p.print("hello world");
	}

}
